import request from '@/utils/request'
export function loginFromServer(username,password,phone,code,authCode='') {
  return request({
    url: '/user/login',
    method: 'post',
    data: { id: username, password: password,phone:phone,code:code, authCode: authCode }
  })
}
export function getPhoneCodeFromServer(phone,account){
  return request({
    url: '/sendCode',
    method: 'post',
    data: {phone:phone,account:account} 
  })
}